home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-12-15 | 1.7 KB | 65 lines | [TEXT/ttxt] |
- // Copyright ©1994 Apple Computer, Inc.
-
- // NOTE: to change the default language,
- // go to the Project Settings menu item
- // and change the language from English to
- // either French or German
-
-
-
- // create the languages frame, either by text or by rsrc
- constant kFromText := nil ;
-
- // create the kLanguagesArray constant for the languages
- // textfile method requires only as many languages as
- // actual text files.
- // resource method requires 5 element array.
- DefConst('kLanguagesArray,
- call func(isText)
- if isText then
- '[English, French, German] ;
- else
- '[English, French, German, Other1, Other2]
- with (kFromText));
-
- if kFromText then
- DefConst('kLangFrame,
- CreateLanguagesFrameFromText(HOME&"StringsCommon.f", kLanguagesArray)) ;
- else
- DefConst('kLangFrame,
- CreateLanguagesFrameFromRsrc(HOME & "strings.rsrc", kLanguagesArray)) ;
-
-
- SetLocalizationFrame(kLangFrame) ;
-
- // define a constant for the english language frame
- constant kStrings := kLangFrame.English ;
-
- // Application constants ---------------------
-
- // only way to replace the application name with NTK 1.5+
- ReplaceObject(kAppName, LocObj(kStrings.AppStrings.AppName, 'AppStrings.AppName)) ;
-
- constant kMaxApplicationWidth := 240 ;
- constant kMaxApplicationHeight := 336 ;
-
-
- // THIS IS A 2.0 ONLY installScript
- installScript := func(partFrame)
- begin
- // change the extras drawer name
- AddDeferredCall(func() GetRoot().extrasDrawer:SetExtrasInfo(kAppSymbol,
- {text: LocObj(kStrings.AppStrings.ExtrasName, 'AppStrings.ExtrasName)}),
- '[]);
- end;
-
-
- /* 1.x INSTALL SCRIPT
- installScript := func(partFrame)
- begin
- AddDeferredAction(func() call kSetExtrasInfo with (kAppSymbol,
- {text: LocObj(kStrings.AppStrings.ExtrasName, 'AppStrings.ExtrasName)}),
- '[]);
- end;
- */
-